<template>
	<web-view :src="url"></web-view>
</template>

<script setup lang="ts">
	import { ref } from 'vue';
	import { onLoad } from '@dcloudio/uni-app';

	const url = ref('');
	onLoad((options) => {
		if (options.url) {
			url.value = decodeURIComponent(options.url);
		}
	});
</script>

<style>
	.back-button {
	  position: fixed;
	  top: 20px;
	  left: 20px;
	  z-index: 999;
	  padding: 10px 20px;
	  background-color: #007AFF;
	  color: #fff;
	  border-radius: 5px;
	  cursor: pointer;
	}
</style>